package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StudentStudyExperienceMapper;
import com.ruoyi.system.domain.StudentStudyExperience;
import com.ruoyi.system.service.IStudentStudyExperienceService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2023-11-11
 */
@Service
public class StudentStudyExperienceServiceImpl implements IStudentStudyExperienceService
{
    @Autowired
    private StudentStudyExperienceMapper studentStudyExperienceMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public StudentStudyExperience selectStudentStudyExperienceById(Long id)
    {
        return studentStudyExperienceMapper.selectStudentStudyExperienceById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param studentStudyExperience 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<StudentStudyExperience> selectStudentStudyExperienceList(StudentStudyExperience studentStudyExperience)
    {
        return studentStudyExperienceMapper.selectStudentStudyExperienceList(studentStudyExperience);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param studentStudyExperience 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertStudentStudyExperience(StudentStudyExperience studentStudyExperience)
    {
        studentStudyExperience.setCreateTime(DateUtils.getNowDate());
        return studentStudyExperienceMapper.insertStudentStudyExperience(studentStudyExperience);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param studentStudyExperience 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateStudentStudyExperience(StudentStudyExperience studentStudyExperience)
    {
        studentStudyExperience.setUpdateTime(DateUtils.getNowDate());
        return studentStudyExperienceMapper.updateStudentStudyExperience(studentStudyExperience);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStudentStudyExperienceByIds(Long[] ids)
    {
        return studentStudyExperienceMapper.deleteStudentStudyExperienceByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteStudentStudyExperienceById(Long id)
    {
        return studentStudyExperienceMapper.deleteStudentStudyExperienceById(id);
    }
}
